package test;

import lejos.nxt.Button;
import lejos.nxt.LCD;
import lejos.nxt.LightSensor;
import lejos.nxt.Motor;
import lejos.nxt.SensorPort;

public class LysNxtTester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Motor.A.setPower(100);
		Motor.A.forward();
		
		LightSensor s1 = new LightSensor(SensorPort.S1, true);
		
		while(!Button.ESCAPE.isPressed()){
			LCD.refresh();
			LCD.drawInt(s1.readValue(), 0, 1);
			try {
				Thread.sleep(50);
			} catch (InterruptedException e) {
			}
		}
	}

}
